const express =require('express') 
const path = require('path')
const fs =require('fs')
const app =express()  

app.get("/",(req,res)=>{
    res.send("hello!!!!!!!!!")
})
app.get("/login",(req,res)=>{
    let url = path.join(__dirname,'views','login.html');
    let connet = fs.readFileSync(url,"utf-8");

    res.send(req.query.name)
})

app.listen(3000,()=>{
    console.log('3000端口已启动！！！');
})